package org.zhq.box;

/**
 * 字符串发送包
 *
 * @author zhengquan
 * @date 2019/2/1
 */
public class StringSendPacket extends BytesSendPacket {

    /**
     * 字符串发送时就是Byte数组,所以直接得到Byte数组,并按照Byte的发送方式发送
     *
     * @param msg
     */
    public StringSendPacket(String msg) {
        super(msg.getBytes());
    }

    @Override
    public byte type() {
        return TYPE_MEMORY_STRING;
    }
}
